<?php

namespace catchAdmin\visitPlan\request;

use catchAdmin\system\model\SensitiveWord;
use catcher\base\CatchRequest;

class CreateRequest extends CatchRequest
{
    protected function rules(): array
    {
        // TODO: Implement rules() method.
        return [
            'visit_name|复诊名称' => 'require',
            'visit_dept|复诊科室' => 'require',
            'next_visit_time|下次复诊时间' => [
                'require',
                'date'
            ],
            'visit_finish_time|复诊结束时间' => [
                'require',
                'egt' => 'next_visit_time|下次复诊时间'
            ],
            'period|复诊周期' => [
                'number',
                //'in:1,2,3,4,5,6,0'

            ],
            'remind_count|多少天前提醒' => [
                'number'
            ],
            'period_content|复诊内容' => [
                'require'
            ],
            'push_type|推送方式' => [
                'require',
                'in:ALL,APP,SMS'
            ],
            'patientIds|患者ID' => [
                'requireIf:is_all,0',
                'array'
            ]
        ];
    }
}
